KenDon.eff.drag = function(element,event){
	if (element.attachEvent){
        IEelementMove(element,event);
    }else if(element.addEventListener){
        FFelementMove(element,event);
    }

    function FFelementMove(element,event){
        
        var x=parseInt(element.style.left, 10),
            y=parseInt(element.style.top, 10),
            absx=event.clientX-x,
            absy=event.clientY-y;
        
        document.addEventListener("mousemove",moveHandler,true);//FF
        document.addEventListener("mouseup",upHandler,true);//FF
        event.stopPropagation();//FF
        event.preventDefault();//FF
                
        function moveHandler(event){
                element.style.left=(event.clientX-absx)+"px";
                element.style.top=(event.clientY-absy)+"px";
                event.stopPropagation();
        } //FF
                    
        function upHandler(event){
                document.removeEventListener("mouseup",upHandler,true);//FF
                document.removeEventListener("mousemove",moveHandler,true);//FF
                event.stopPropagation();
        }//F
    }//end FFelementMove

    function IEelementMove(element,event){
        function moveHandler(event){
            element.style.left=(event.clientX-absx)+"px";
            element.style.top=(event.clientY-absy)+"px";
            return false;
        }
            
        function upHandler(event){
            document.detachEvent("onmouseup",upHandler);//IE
            document.detachEvent("onmousemove",moveHandler);//IE
            return false;
        }
       
        var x=parseInt(element.style.left, 10),
            y=parseInt(element.style.top, 10),
            absx=event.clientX-x,
            absy=event.clientY-y;
        
        document.attachEvent("onmousemove", moveHandler);//IE
        document.attachEvent("onmouseup", upHandler);//IE
        return false;
    }//end IEelementMove
};